#ifndef WIDGET_H
#define WIDGET_H
#include "algraph.cpp"
#include <QWidget>
//#include "threadtraverse.h"
#include "PolygonWidget.h"
#include "QStringList"
QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void myupdate();

private slots:
    void on_pushButton_clicked();

    void on_comboBox_currentIndexChanged(int index);

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();
    void    resizeEvent(QResizeEvent *event) override; // 调用基类的resizeEvent
    void setdata();
    void on_pushButton_5_clicked();

public:
    Ui::Widget *ui;
    ALGraph<int> *alg;
    //ThreadTraverse *tt;
    PolygonWidget *widget;
};
#endif // WIDGET_H
